package com.bimiaomiao.service04.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 服务接口, RequestMapping和方法的Mapping必须是nacos服务中存在的
 * @package com.bimiaomiao.service04.service
 * @who MiaoMiao "Sprout" BI
 * @date 2021-02-22 09:54:38
 */
@FeignClient(name="app01",fallback = ServiceHystrix.class)  //此处为 其它服务注册到nacos中的服务名
@RequestMapping("/service01") //此处为app01服务的controller服务名
public interface Service01 {

        @RequestMapping("demo01")  //此处为app01服务中controller服务名下的demo01方法
        String demo01();
}
